package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Name string `gorm:"type:varchar(30)"json:"name"`
}
type Article struct {
	gorm.Model
	Title      string `gorm:"type:varchar(30)"json:"title"`
	Author     string `gorm:"type:varchar(30)"json:"author"`
	Content    string `gorm:"type:varchar(30)"json:"content"`
	Like       int    `gorm:"type:int"json:"like"`
	Collection int    `gorm:"type:int"json:"collection"`
}
